package com.cqie.rbac.util;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @Author 夏兵
 * @Date 2021/9/17
 */
public class AuthToken extends UsernamePasswordToken {
    private String token;

    public AuthToken(String token) {
        this.token = token;
    }

    public AuthToken() {

    }

    @Override
    public Object getPrincipal() {
        return this.token;
    }

    @Override
    public Object getCredentials() {
        return this.token;
    }
}
